package com.itheima.demo;

import java.util.ArrayList;
import java.util.TreeMap;

public class Demo02 {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();

        list.add("1");
        list.stream().forEach(s-> System.out.println(s));


        TreeMap<String, String> map = new TreeMap<>();
        map.put("aba","lili");
        map.put("aba1","lili1");
        map.put("aba2","lili2");
        map.keySet().stream().forEach(k -> System.out.println(map.get(k)));
    }
}
